//
//  PlayingViewController.h
//  Coco_Music
//
//  Created by K。 on 15/6/19.
//  Copyright (c) 2015年 寇广超. All rights reserved.
//

#import "BaseViewController.h"
#import "STKAudioPlayer.h"
#import "Play.h"
#import <AVFoundation/AVFoundation.h>
#import "AFN_block.h"

#import "UIImageView+WebCache.h"
#import <MediaPlayer/MediaPlayer.h>
#import "SingDanli.h"
//定义循环枚举值
typedef NS_ENUM(NSInteger, PlayWithWay)
{
    PlayWithWayOneSongCirculation = 0,  //单曲
    PlayWithWayRandom,   //随机
    PlayWithWaySole   // 顺序
};

@protocol viewDisplayRoundView <NSObject>

-(void)viewDisplayView;
-(void)hideRoundView;

@end

@interface PlayingViewController : BaseViewController<UITableViewDelegate,UITableViewDataSource>

{
    UISlider *progress;
    NSTimer *_progressUpdateTimer;
    NSTimer *_playbackSeekTimer;
    double _seekToPoint;
    BOOL _paused;
    
    UILabel *_currentPlaybackTime;
    UILabel * _totalPlaybackTime;
    
    UIButton * _playButton;
   
    UIButton * _nextButton;
    UIButton * _playbackButton;
    UIButton * _playListButton;
    UIButton * _collectButton;
    UIButton * downLoadButton;
    
    UILabel * noLrcLabel;
    
    BOOL isPlaying;
    BOOL isPasue;
    BOOL isLrc;
    
    NSInteger isPlayBack;
    
    UIView* meter;
    
    
}


@property(nonatomic,retain)STKAudioPlayer *STKPlayer;
@property(nonatomic,retain)UIImageView *imageView;
@property(nonatomic,assign)BOOL isPlay;
@property(nonatomic,assign)BOOL isStop;


@property(nonatomic,retain)NSMutableArray *array;
@property (nonatomic ,assign) NSInteger indexPath;
@property(nonatomic,assign)NSInteger number;
+(instancetype)shareHandleController;
@property (nonatomic, retain)NSTimer *mytime;
@property(nonatomic,assign)PlayWithWay playWithWay;

-(void)preButtonEvent;
-(void)nextButtonEvent;


@property (strong, nonatomic)NSString *shareUrl;
@property(nonatomic)BOOL logiend;

@property (nonatomic ,retain)UIView *showView;
@property (retain, nonatomic)UIButton *favorite;
@property (retain, nonatomic)UIButton *share;
@property (nonatomic, assign)NSInteger fontState;


@end
